<%= render 'head' %></br>
<body class="back">
<div class="container" id="query">
  <table class="table table-bordered">
    <thead>
      <caption id="querycaption"><h1>测试结果</h1></caption>
      <tr>
        <th>姓名</th>
        <th>手机号</th>
        <th>身份证</th>
        <th>性别</th>
        <th>年龄</th>
        <th>地址</th>
        <!-- <th>平和体质得分</th> -->
        <!-- <th>气虚型体质（B型）</th>
        <th>阳虚型体质（C型）</th>
        <th>阴虚型体质（D型）</th>
        <th>痰湿型体质（E型）</th>
        <th>湿热型体质（F型）</th>
        <th>血瘀型体质（G型）</th>
        <th>气郁型体质（H型）</th>
        <th>禀型体质（I型）</th> -->
        <th>时间</th>
        <th>结果</th>
      </tr>
    </thead>
    <tbody>
      <% @result.each do |result|%>
        <tr>
          <td> <a href="/healthmanage/echart/<%= result.id %>"><%= result.name %></a></td>
          <td><%= result.tel %></td>
          <td><%= result.card %></td>
          <td><%= result.sex %></td>
          <td><%= result.age %></td>
          <td><%= result.add %></td>
          <!-- <td><%= result.real_score1 %></td>
          <td><%= result.real_score2 %></td>
          <td><%= result.real_score3 %></td>
          <td><%= result.real_score4 %></td>
          <td><%= result.real_score5 %></td>
          <td><%= result.real_score6 %></td>
          <td><%= result.real_score7 %></td>
          <td><%= result.real_score8 %></td>
          <td><%= result.real_score9 %></td> -->
          <td><%= datetime result.created_at %></td>
          <td><%= result.score_result %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
  <%= paginate @result %>
</div>
</body>
